package day05;

public class MethodDemo1 {
    public static void main(String[] args) {
        say("zhangsan");
        say("lisi");
        System.out.println("--------------");
        say("zgs",30);
        say("李四",66);
        System.out.println("--------------");
        say();
        System.out.println("over");
        a();
        System.out.println(4444444);

    }

    public static void say(String name,int age){
        if(age>60){
            return;
        }
        System.out.println("大家好,我叫"+name+"今年"+age+"岁了！");
    }
    public static void say(String name){
        System.out.println("大叫好,我叫"+name+",今年40岁了");
    }
    public static void say(){
        System.out.println("大家好,我叫wkj,今年40岁了");

    }
    public static void say(int age){}
    //public static void say(String address){}
    public static void say(int age,String name){}

    public static void a(){
        System.out.println(1111111);
        b();
        System.out.println(2222222);
    }
    public static void b(){
        System.out.println(3333333);
    }


}
